package com.forum.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.stereotype.Component;

import java.time.*;
@Component
public class AuditLogs {
    @TableId(type = IdType.AUTO)
    private Integer id; // 日志ID
    private Integer adminId; // 操作管理员ID
    private String action; // 操作类型
    private String targetType; // 操作对象类型（如user/article）
    private Integer targetId; // 操作对象ID
    private String detail; // 详细描述
    private LocalDateTime createdAt; // 操作时间

    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public Integer getAdminId() { return adminId; }
    public void setAdminId(Integer adminId) { this.adminId = adminId; }
    public String getAction() { return action; }
    public void setAction(String action) { this.action = action; }
    public String getTargetType() { return targetType; }
    public void setTargetType(String targetType) { this.targetType = targetType; }
    public Integer getTargetId() { return targetId; }
    public void setTargetId(Integer targetId) { this.targetId = targetId; }
    public String getDetail() { return detail; }
    public void setDetail(String detail) { this.detail = detail; }
    public LocalDateTime getCreatedAt() { return createdAt; }
    public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
}
